-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloaders for historical transfers #1473
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (42)
|
a755abe
to
654f1bf
Compare
@pombeirp @adambabik since you guys already reviewed previous PR you can help me with this one :) |
will implement better algorithm for finding eth transfers in a followup PR |
@dshulyak I get this error a few seconds after login: here is the node config |
there is a bug in ethclient https://github.com/ethereum/go-ethereum/blob/master/ethclient/ethclient.go#L243-L251 it doesn't check an error. i pushed a workaround and will submit a fix for it |
made a fix here ethereum/go-ethereum#19653 @yenda btw can you give me an address that you are using? i want to run it with my script |
@dshulyak |
4c5b957
to
6a67f43
Compare
I am not sure how to use If I pass This is all the params I tried with
|
it gets all transfers from first block till the last if last is not provided query will have no limit. query works in forward order if second blocks is lower that the first probably nothing will be selected as for the first one is nil i will handle that. have you tried to query using 0 as a first parameter?
i will change it to hex |
examples: {"jsonrpc":"2.0","id":14,"method":"wallet_getTransfers","params":[0,20]}
{"jsonrpc":"2.0","id":14,"method":"wallet_getTransfers","params":[0,null]}
{"jsonrpc":"2.0","id":13,"method":"wallet_getTransfers","params":[0]} |
changes in last commit:
can you turn on debug logging for status-go? i wasn't able to repro 1st issue. but added couple of enhancements and logs when service is stopped |
When downloader is started it will go through following procedure: - verify that the last synced block is still in canonical chain - run fast indexer for every account from last synced block to head of the chain - start watching block by block
developed on top of #1467
todo: